package com.zhudoo.zhilian.dao.repository;

import com.zhudoo.zhilian.dao.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

@Repository
public interface UserRepository extends JpaRepository<User, Serializable> {
    User findByPhone(String phone);

    User findByOpenId(String openId);

    User findByToken(String token);

}
